#!/bin/bash

flex pylex.cc
gcc -g -Wall -o pylex pylex.c

echo "Testing. "
./pylex ../data/test0_vacuity.py
./pylex ../data/test1_expresions.py
./pylex ../data/test2_functions.py
./pylex ../data/test3_class.py
./pylex ../data/test4_giventest.py
echo "Testing.. "
./pylex ../data/test9_nested_scopes_functions.py
./pylex ../data/test10_nested_scopes_class_function.py
./pylex ../data/test11_global_scope.py
./pylex ../data/test12_imports.py
./pylex ../data/test13_andOr.py
echo "Testing... "
echo "Work Done!!"

rm -r pylex.dSYM
rm pylex.h
rm pylex.c
rm pylex